package com.itfreer.setting.ui;

import android.os.Bundle;
import android.view.View;

import com.itfreer.setting.R;
import com.itfreer.ui.activity.BaseActivity;
import com.itfreer.ui.base.TextView;
import com.itfreer.utils.SystemUtils;
import com.itfreer.utils.VersionCheckUtils;

/**
 * 关于
 */
public class AboutActivity extends BaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting_about);

        // 返回
        TextView me =(TextView)findViewById(R.id.setting_about_back);
        me.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                finish();
            }
        });

        com.itfreer.ui.form.EditText did = (com.itfreer.ui.form.EditText)findViewById(R.id.setting_about_did);
        did.setText(SystemUtils.getAndroidId(this));

        com.itfreer.ui.form.EditText versionName = (com.itfreer.ui.form.EditText)findViewById(R.id.versionName);
        versionName.setText(VersionCheckUtils.getVersionName(this));
    }
}
